package net.scribblemedia.sqldsk.usercontroller;

import static org.apache.commons.lang.builder.ToStringBuilder.reflectionToString;

import java.util.List;

public class ReportQueryPaginationBean {
	@SuppressWarnings("rawtypes")
	private List partialList;
	private Integer totalCount;
	private Integer pageSize;
	private Integer startIndex;
	private Integer currentPage;
	private String commaDelimitedVisibleRowIds;
	private String displayTagPageParameterName;
	private String prettySql;
	private String exportFilename;
	
	@SuppressWarnings("rawtypes")
	public ReportQueryPaginationBean(List partialList, Integer totalCount, Integer pageSize, Integer startIndex, Integer currentPage, String commaDelimitedVisibleRowIds, String displayTagPageParameterName, String prettySql, String exporFilename) {
		this.partialList = partialList;
		this.totalCount = totalCount;
		this.pageSize = pageSize;
		this.startIndex = startIndex;
		this.currentPage = currentPage;
		this.commaDelimitedVisibleRowIds = commaDelimitedVisibleRowIds;
		this.displayTagPageParameterName = displayTagPageParameterName;
		this.prettySql = prettySql;
		this.exportFilename = exporFilename;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	@SuppressWarnings("rawtypes")
	public List getPartialList() {
		return partialList;
	}

	@SuppressWarnings("rawtypes")
	public void setPartialList(List partialList) {
		this.partialList = partialList;
	}
	
	@Override
	public String toString() {
		return reflectionToString(this);
	}

	public Integer getStartIndex() {
		return startIndex;
	}

	public void setStartIndex(Integer startIndex) {
		this.startIndex = startIndex;
	}

	public String getCommaDelimitedVisibleRowIds() {
		return commaDelimitedVisibleRowIds;
	}

	public void setCommaDelimitedVisibleRowIds(
			String commaDelimitedVisibleRowIds) {
		this.commaDelimitedVisibleRowIds = commaDelimitedVisibleRowIds;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public String getDisplayTagPageParameterName() {
		return displayTagPageParameterName;
	}

	public void setDisplayTagPageParameterName(
			String displayTagPageParameterName) {
		this.displayTagPageParameterName = displayTagPageParameterName;
	}

	public String getPrettySql() {
		return prettySql;
	}

	public void setPrettySql(String prettySql) {
		this.prettySql = prettySql;
	}

	public String getExportFilename() {
		return exportFilename;
	}

	public void setExportFilename(String exportFilename) {
		this.exportFilename = exportFilename;
	}
}
